package com.nl.lib_core.tool.extends

/** 作者: wangfei 创建时间: 2021/12/30 包名: com.nl.lib_core.tool.extends 类名: StringExtends */
fun String.index2Id(): String {
  return (this.toInt() + 1).toString()
}

fun String.id2Index(): String {
  return (this.toInt() - 1).toString()
}

fun String.idToIndex(): Int {
  return this.toInt() - 1
}

fun Int.indexToId(): String {
  return (this.toInt() + 1).toString()
}
